Timelinelite is a piece of the Greensock Tweenmax library that provides the ability to create sequenced animation with Ver Y little code or Setup.Key value:Read more:https://egghead.io/lessons/angularjs-greensock-timelinelite-animation-sequencesExample:Angular.module (' website ', [' nganimate ']). Controller (' Mainctrl ',function($scope) {$scope. Slides=[{bg:' Images/bg3.jpg ', Avatar: ' Images/john.png '
Article Introduction: a more high-end-javascript motion algorithm and Greensock framework for Web chatter
Saturday to share a PPT, the relevant resources to share with you.
Online Ppthttps://speakerdeck.com/w3cplus/rang-wang-ye-dou-de-geng-jia-gao-duan
http://www.greensock.com/v12/
Demo ppt http://1.jtyresume.sinaapp.com/tween.html
Some of the technical information mentioned in the paper
All modern technology compatibility quick
Static attributes
TweenLite. defaultEase
Set the default easing Function
Static Method
TweenLite. (Target: Object,Duration: Number,Vars: Object): TweenLite
Function: used to create an animation.
Parameter: target: Specifies the video clip for
TimelineLite is a lightweight, easy-to-use time axis that can be used to establish and manage queues composed of instances such as TweenLite, TweenMax, TimelineLite, and TimelineMax. As you can imagine, A TimelineLite instance is like a virtual
ImageLoader
Constructor ImageLoader (urlOrRequest: *, vars: Object = null)
Parameter: urlOrRequest: url (String type) or URLRequest of the image to be loaded
Vars: attribute object. It can be written as a {} style or directly transmitted as an
SWFLoader is used to load swf files. Its usage is similar to that of ImageLoader.requireWithRootPointing to this root swf, the loading process of the sub-loaded object will be included in this root swf. Let's take a look at its usage.
Constructor
began to find some big problems, I did not go into the study. I was shocked.This article is used to reveal some of the major flaws in CSS-based animations, so you can avoid the problems that have plagued me, and also teach you to decide when to use JS animations and when to use CSS animations.Lack of independent scale/rotation/position controlAnimating the dimensions, rotations, and positions of elements is very common. In CSS, these settings are plugged into transform attributes so that they a
The code is not integrated or optimized. Algorithms are important;
Package move {import flash. display. bitmapData; import flash. display. sprite; public class Tile extends Sprite {/*** unit entity class ** // *** bitmap data **/private var _ bit: BitmapData; /***** name **/private var _ m_type: String = ""; public function Tile (_ bit: BitmapData) {_ bit = _ bit; this. graphics. beginBitmapFill (_ bit); this. graphics. drawRect (0, 0, 32); this. graphics. endFill ();} public function get m_type
AngularJS animations and tweenlite make it really easy to create cool 3d effects in your application.DOCTYPE HTML>HTMLNg-app= "Hellogreensock"> HeadLang= "en"> MetaCharSet= "UTF-8"> title>Hello greensock!title> Linkrel= "stylesheet"href= "Css/greensock.css"/> Head> BodyNg-controller= "Mainctrl"> questionclass= "Cardwrapper answer-animation"Ng-class= "{' Answer ': showanswer}"ng-repeat= "Q in questions"Ng-mouseenter
com.greensock.plugins.EndArrayPlugin; import flash.events.MouseEvent;import flash.events.Event;public class Main extends Sprite{private var rollText:RollTextField;public function Main(){TweenPlugin.activate([EndArrayPlugin]);rollText=new RollTextField();addChild(rollText);rollText.x=200;rollText.y=200;rollText.init(new nums(0,0),10);stage.addEventListener(MouseEvent.CLICK,onClick); addEventListener(Event.ENTER_FRAME,onRender);}private function onRender(event:Event):void{rollText.text=Math.rando
} SCRIPT> So if you want to use refs's content, you need to write the component to the DOM before you start calling it!What else do I need to learn?So far, we have learned most of the three articles about components and routing knowledge, of course, this is not all of vue, but relative to other points of knowledge, these can be regarded as a stepping stone, to understand these, the application of other APIs in the future, the help is very big. Below I listed some other, follow-up people
.
Velocity.js
The richness of Greensock animation (GSAP) does not mean that velocity itself is weakly functional. In contrast, velocity not only contains all the features of jquery's $.animate (), but also integrates color animations, transforms, loops, Easings, class animations, and scrolling animations. All of this, compressed only after 7KB
In short, velocity is the equivalent of combining the Jquery,jquery UI with the CSS transitions.
In addition,
I want to know where the main application of algorithms in web Front-end development is. Is there a combination of points? I want to know where the main application of algorithms in web Front-end development is. Is there a combination of points? Reply: # optimize the native JavaScript method (not necessarily all methods will improve the speed) and expand.
* Famous jQuery
And Zepto. js: the aerogel-weight jQuery-compatible JavaScript library
* Underscore. js
# Mathematical computing
* JStat: a
module is loaded in the application module. Now let's take a look at how to get these commands started.Custom Angular animation syntax
The following is a basic framework for customizing JavaScript animation:
angular.module('coursesApp').animation('.name-of-animation', function(
) { return { event: function(elem, done){ //logic of animation done(); } };});
There are some important points to remember when writing JavaScript animations in AngularJS:
The animation name starts with a
Notice that we've bound the CSS to a value of false, so that the component knows we're going to use JavaScript instead of CSS.At the most basic level, this is what you need to start animating and ending animations, including the relevant methods:Methods: { enterel (el, done) { //entrance animation do (); }, leaveel (el, done) { //exit Animation done (); },}In the example below, I've plugged in a greensock timeline in the Hooks:New
, Bootstrap, and finally choose bootstrap+ Custom Style, the main reason for the company's other projects also used bootstrap. For me, these three frames I have not used before, as a one-year experience of the front end is ridiculous, in fact, I think there is nothing, immediately learn is.1. JS Library: Consider jquery and Zepto, and finally choose jquery1. Front-end tool: gulp,browserify,bower,less1. Express,node, the colleague of node, is familiar with1. Swig for front-end templates1.
============================================================================In addition to all the above editor, but also have to mention two more good JS library, for the Auxiliary Action system:Createjs:http://www.createjs.com/#!/createjsgsap-js:http://www.greensock.com/gsap-js/Createjs is used by Adobe CC to export HTML5 animations, and Gsap's creator Greensock has always been a leader in the Flash animation industry. Specific usage is not describe
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.